#include <stdio.h>
void swap(int* x, int* y)
{
    int temp = 0;
    temp = *x;
    *x = *y;
    *y = temp;
}

int main()
{
    int a = 0;
    int b = 0;
    int c = 0;
    printf("请输入三个数值>>");
    scanf("%d %d %d",&a,&b,&c);
    //调整
    if(a<b){ 
        swap(&a,&b);
    }
    if(a<c){
        swap(&a,&c);
    }
    if(b<c){
        swap(&b,&c);
    }
    //输出
    printf("%d %d %d",a,b,c);
    return 0;
}